import http from "../api/axiosFun.js"

//获取广告
function get()
{
	let url = '/cms/banner/get'
	return http.get(url).then(res=>{
		return res
	})
}

//添加广告
function insert(data)
{
	let url = '/cms/banner/insert'
	return http.post(url,data).then(res=>{
		return res
	})
}

//添加广告
function update(data)
{
	let url = '/cms/banner/update'
	return http.post(url,data).then(res=>{
		return res
	})
}

//添加广告
function del(id)
{
	let url = '/cms/banner/del?id='+id
	return http.put_show(url).then(res=>{
		return res
	})
}

export default{
	get,
	insert,
	update,
	del
}